package com.youkeyi.ddy.cloud.common.api.application.business.storage.vaccinum;

import com.youkeyi.ddy.cloud.common.api.application.business.storage.vaccinum.dto.BusinessVaccinumPlanListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.business.storage.vaccinum.param.BusinessVaccinumPlanCloudParam;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletResponse;

/**
 * BusinessVaccinumPlanCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 1/28/22 4:12 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/business/vaccinum/plan/fallback")
public class BusinessVaccinumPlanCloudServiceFallback implements BusinessVaccinumPlanCloudService {

    @Override
    public BusinessVaccinumPlanListCloudDto plan(BusinessVaccinumPlanCloudParam param) {
        return new BusinessVaccinumPlanListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public void exportXls(HttpServletResponse response, BusinessVaccinumPlanCloudParam param) {
        return;
    }
}
